package org.example.proxy;

public class HouseProxy implements HouseSubject {
    private HouseSubject houseSubject;
    HouseProxy(HouseSubject houseSubject){
        this.houseSubject = houseSubject;
    }
    @Override
    public void sentHouse() {
        System.out.println("我是中介，我代理出租房子");
        houseSubject.sentHouse();
        System.out.println("我是中介，代理结束");
    }
}
